package com.mldong.modules.cms.dto;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.*;
import com.mldong.validation.Groups;
/**
 * <p>
 * 内容
 * </p>
 *
 * @author mldong
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("cms_content")
@ApiModel(value = "ContentParam对象", description = "内容")
public class ContentParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = true)
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "主键不能为空", groups = {Groups.Update.class})
    private Long id;

    @ApiModelProperty(value = "所属栏目", required = true)
    @NotNull(message = "所属栏目不能为空")
    private Long categoryId;

    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "来源")
    private String source;

    @ApiModelProperty(value = "seo关键字")
    private String seoKeywords;

    @ApiModelProperty(value = "seo描述")
    private String seoDesc;

    @ApiModelProperty(value = "摘要")
    private String description;

    @ApiModelProperty(value = "排序")
    private Long sort;

    @ApiModelProperty(value = "单图")
    private String image;

    @ApiModelProperty(value = "多图")
    private String images;

    @ApiModelProperty(value = "是否推荐")
    private Boolean isRecommend;

    @ApiModelProperty(value = "是否发布")
    private Boolean isPublished;

    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "业务状态")
    private Integer status;


}
